package cn.data.test;

import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;

import cn.datawin.task.Task;
import cn.datawin.task.dao.DbUtil;
import cn.datawin.task.util.HttpUtil;

public class MainEntrya {
	
	public static void main(String[] args) throws IOException {
		DbUtil.connect();

		DBCollection coll = DbUtil.getcoll("client");
		BasicDBObject dbo = new BasicDBObject("workbeach", "127.0.0.1_58");
		dbo.append("time", System.currentTimeMillis()).append("note", "58 客户端");
		coll.insert(dbo);
		
	}
	

	static List<List<Map<String, Object>>> toList (){
		
		return null;
	}
	
	

}
